#include "tdp2_error.hpp"

namespace TDP
{
	void Panic(const PanicHandler *ph, FatalErrors::ErrorCode errCode)
	{
		if(ph)
			const_cast<PanicHandler *>(ph)->Panic(errCode);
		throw FatalErrorException(errCode);
	}
}